package com.tinygone.user.feign;

import com.tinygone.user.pojo.Movie;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author liqigang
 */
@FeignClient(value = "FIRSTEUREKACLIENT")
public interface IMovieFeignClient {
    @GetMapping("/port")
    String test1();

    @GetMapping("/movie/{id}")
    Movie getMovieById(@PathVariable(name = "id") String id);

    @PostMapping("/movie/post")
    Movie postMovie(Movie movie);
}
